<template>
  <div class="workshops_container">
      <!-- <dv-loading v-if="loading"></dv-loading> -->
      <list-header
      :search.sync="search"
      :type="type"
      :title="title"
      icon="bolt"
      searchplaceholder="请输入设备名称/编号"
      selectplaceholder="请选择安装地点"
      @on-handle="listHeadHandle"
      @on-search="crmSearch"
      @on-export="exportInfos"
    />
      <div class="workshops_main">
        <c-tbale :columns="columns" :tableData="tableData"/>
      </div>
  </div>
</template>

<script>
import listHeader from "@/components/listHeader/index";
import cTbale from "../../../components/tablePage/tablePage"
export default {
  components: {
    listHeader, 
    cTbale
  },
  data(){
    return{
      type:"electricity",
      title:"电力消耗",
      columns:[
        { text: "序号", prop: "id", width: '6%' },
        { text: "时间", prop: "CREATEDATE", width: '18%' },
        { text: "车间名称", prop: "NAME", width: '18%' },
        { text: "早班", prop: "WORD", width: '18%'},
        { text: "中班", prop: "CONSUMPTION", width: '15%' },
        { text: "晚班", prop: "READER", width: '10%' },
        { text: "日累计量", prop: "READER", width: '10%' },
        { text: "总累计量", prop: "READER", width: '10%' },
      ],
      tableData: [],
    }
  }
};
</script>

<style>
</style>